﻿<%@ Page Title="" Theme="Default_Themes" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="DanhGiaCSD.aspx.cs" Inherits="Manager_DanhGiaCSD" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <div class="row-fluid">
        <div class="span12">
            <div class="box">
                <div class="box-title">
                    <h3><i class="icon-file"></i> Đánh giá cơ sở đoàn</h3>
                    <div class="box-tool">
                        <a data-action="collapse" href="#"><i class="icon-chevron-up"></i></a>
                        <a data-action="close" href="#"><i class="icon-remove"></i></a>
                    </div>
                </div>
                <div class="box-content" style="border:solid 1px;">
                    <asp:UpdatePanel ID="udt1" runat="server">
                        <ContentTemplate>
                            <asp:GridView ID="grid" runat="server" AutoGenerateColumns="False" DataKeyNames="ID">
                                <Columns>
                                    <asp:TemplateField HeaderText="Chọn">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="deletenews" Enabled="true" Checked="false" runat="server" />
                                        </ItemTemplate>
                                        <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" VerticalAlign="Middle" Width="50px" />
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="NamDanhGia" HeaderText="Năm đánh giá" SortExpression="NamDanhGia" ItemStyle-CssClass="ItemGridCell" ItemStyle-HorizontalAlign="Center" />
                                    <asp:BoundField DataField="QuyetDinh" HeaderText="Quyết Định" SortExpression="QuyetDinh" ItemStyle-CssClass="ItemGridCell" ItemStyle-HorizontalAlign="Center"/>
                                    <asp:BoundField DataField="MucDo" HeaderText="Mức Độ" SortExpression="MucDo" ItemStyle-CssClass="ItemGridCell" ItemStyle-HorizontalAlign="Center"/>
                                    <asp:BoundField DataField="NoiDung" HeaderText="Nội Dung" SortExpression="NoiDung" ItemStyle-CssClass="ItemGridCell"/>
                                </Columns>
                            </asp:GridView>
                            <div style="height:5px;"></div>
                            <asp:LinkButton ID="btnadd" OnClick="btnadd_Click" class="btn btn-primary"  runat="server" Width="100px"><i class="icon-plus-sign"></i>&nbsp;&nbsp;Thêm mới</asp:LinkButton>
                            <asp:LinkButton ID="btnedit" OnClick="btnedit_Click" class="btn btn-primary"  runat="server" Width="100px"><i class="icon-wrench"></i>&nbsp;&nbsp;Hiệu chỉnh</asp:LinkButton>
                            <asp:LinkButton ID="btndelete" runat="server" class="btn btn-danger" OnClick="btndelete_Click" Width="100px" OnClientClick="return confirm('Bạn có chắc xóa không?')"><i class="icon-trash"></i>&nbsp;&nbsp;Xóa</asp:LinkButton>
                            <hr/>
                            <div class="control-group info">
                                <label class="control-label" style="width:150px;padding-right:10px;">Nhập năm đánh giá</label>
                                <div class="controls">
                                    <asp:TextBox ID="txtnamdanhgia" runat="server" CssClass="span2" placeholder="Nhập năm" MaxLength="4"></asp:TextBox>
                                    <ajaxToolkit:FilteredTextBoxExtender ID="txtnamrenluen_FilteredTextBoxExtender" runat="server" FilterType="Numbers" TargetControlID="txtnamdanhgia"></ajaxToolkit:FilteredTextBoxExtender>
                                    <input type="hidden" runat="server" id="txtid" name="txtid" />
                                </div>
                                <div style="height:5px;"></div>
                                <label class="control-label" style="width:150px;padding-right:10px;">Quyết định</label>
                                <div class="controls">
                                    <asp:TextBox ID="txtquyetdinh" placeholder="Nhập số quyết định" runat="server" CssClass="span5" onblur="KiemTraInjection(this);"></asp:TextBox>
                                </div>
                                <div style="height:5px;"></div>
                                <label class="control-label" style="width:150px;padding-right:10px;">Mức độ đánh giá</label>
                                <div class="controls">
                                    <asp:DropDownList ID="drlMucDo" runat="server" CssClass="span5" Height="25px"></asp:DropDownList>
                                </div>
                                <div style="height:5px;"></div>
                                <label class="control-label" style="width:150px;padding-right:10px;">Nội dung</label>
                                <div class="controls">
                                    <asp:TextBox ID="txtnoidung" runat="server" style="height:100px !important;" TextMode="MultiLine" CssClass="span5" onblur="KiemTraInjection(this);"></asp:TextBox>
                                    <div style="height:5px;"></div>
                                    <asp:LinkButton ID="btnsave" Visible="true" runat="server" OnClick="btnsave_Click" class="btn btn-primary" ><i class="icon-save"></i> Lưu</asp:LinkButton>
                                    <asp:LinkButton ID="btn_close" Visible="true" runat="server" class="btn  btn-danger" ><i class="icon-signout"></i> Đóng</asp:LinkButton>
                                    <asp:Label ID="lblmessage" runat="server"></asp:Label>
                                </div>
                            </div>
                        </ContentTemplate>
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="btnadd" EventName="Click" />
                            <asp:AsyncPostBackTrigger ControlID="btnedit" EventName="Click" />
                            <asp:AsyncPostBackTrigger ControlID="btndelete" EventName="Click" />
                            <asp:AsyncPostBackTrigger ControlID="btnsave" EventName="Click" />
                        </Triggers>
                    </asp:UpdatePanel>
                </div>
            </div>
        </div>
    </div>
    <br><br><br><br><br><br><br><br><br><br><br><br>
    <br><br><br><br><br><br><br><br><br><br><br><br>
</asp:Content>

